package com.devilvan.jsoup;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.annotation.JSONType;
import com.alibaba.fastjson.parser.deserializer.SqlDateDeserializer;
import lombok.Data;

import java.text.SimpleDateFormat;
import java.util.Date;

@Data
public class Author{
    @JSONField(alternateNames = "name")
    private String preferredName;
    private String normalizedName;
    private String firstName;
    private String lastName;
    private String searchablePreferredName;
    private Long id;
    private Integer ooi;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss",
            deserializeUsing = MyDateFormatDeserializer.class,
            alternateNames = {"create123"})
    private Date createTime;
}
